﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AplicacionMVC.Models.Sala>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
   
          <div style="color:Red; font-weight:bold;">   <%: this.Session["data"] %></div>
        <tr>
            <th></th>
            <th>
                Codigo
            </th>
            <th>
                Nombre
            </th>
            <th>
                Tipo
            </th>
             <th>
                Horario
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id = item.Id_sala })%> |
                <%: Html.ActionLink("Details", "Details", new { id = item.Id_sala })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.Id_sala })%>

            </td>
            <td>
                <%: item.Id_sala%>
            </td>
            <td>
                <%: item.Nombre%>
            </td>
            <td>
                <%: item.Tiposala%>
            </td>
            <td>
                <%: item.Horario%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

